# MicroPython 测试文件
# 用于测试 VS Code 扩展的功能

from machine import Pin
from time import sleep

# LED 引脚（根据您的板子调整）
led = Pin(2, Pin.OUT)

print("LED Blink Test")
print("按 Ctrl+C 停止")

try:
    while True:
        led.value(1)
        print("LED ON")
        sleep(1)

        led.value(0)
        print("LED OFF")
        sleep(1)

except KeyboardInterrupt:
    print("\n程序已停止")
    led.value(0)
